<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>青年公寓系统 - 服务管理修改</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/add.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/lib/bp.css">
<style type="text/css">
	.breadcrumb{
		margin-bottom:0;
	    padding-bottom: 20px;
	}
	.breadcrumb,.breadcrumb li{
		font-size:20px;
		background: white;
		line-height: 50px;
	}
	.breadcrumb li a:hover{
		text-decoration: underline;
	}
	.form-control{
		height: auto;
	}
	.form-group{
		overflow: hidden;
		margin-bottom: 30px;
	}
	.sub{
		width:300px;
		margin-left:150px;
		display: flex;
		justify-content: space-around;
	}
	.btn{
		width: 80px;
	}

</style>
</head>
<body style="background: #f5f5f5">
	<div style="margin: 15px 30px;">
		<div style="border-radius:5px;">
			<ol class="breadcrumb">
				<li><a href="${pageContext.request.contextPath}/house/huoseList?index=1">管理员</a></li>
				<li><a href="${pageContext.request.contextPath}/listUser?index=1">用户管理</a></li>
				<li class="active">修改用户</li>
			</ol>
			<div style="padding: 0 150px;overflow: hidden;background: white;">
					<!-- onsubmit="subForm()" -->
				<form action="${pageContext.request.contextPath}/updateUser" method="post" 
					  class="form-horizontal" >
					  <input type="hidden" name="u_id" value="${getUs.u_id}" />
						 <div class="form-group">
					    <label class="col-sm-2 control-label">账户</label >
					    <div class="col-sm-5">
					    	<input class="form-control" value="${getUs.u_name }" disabled>
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">密码</label>
					    <div class="col-sm-5">
					    	<input class="form-control" type="password" name="u_pass">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">真实姓名</label>
					    <div class="col-sm-5">
					    	<input class="form-control"  value="${getUs.u_realname }" disabled>
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">性别</label>
					    <label class=" radio-inline" style="margin-left: 15px;">
					    	<input type="radio" name="u_sex" value="男" ${getUs.u_sex.equals("男")?"checked":""}>男
					    </label >
					    <label  class=" radio-inline">
				    		<input type="radio" name="u_sex" value="女" ${getUs.u_sex.equals("女")?"checked":""}>女
					    </label >
					  </div>
					  <div class="form-group cradio">
					    <label  class="col-sm-2 control-label">角色名称</label>
					    <div class="col-sm-5">
						    	<select name="role_id" style="width: 100px;height: 25px;">
						    		<c:forEach items="${list}" var="d">
										<option value="${d.ro_id }" ${d.ro_id==getUs.role_id?"selected":"" } >${d.ro_name }</option>
		     						</c:forEach>
						    	</select>
						 </div>
				  		</div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">状态</label>
					    <label class=" radio-inline" style="margin-left: 15px;">
					    	<input type="radio" name="u_state" value="0" ${getUs.u_state=="0"?"checked":""}>正常
					    </label >
					    <label  class=" radio-inline">
				    		<input type="radio" name="u_state" value="1" ${getUs.u_state=="1"?"checked":""}>不可用
					    </label >
					  </div>
					  <div class="sub" >
					 		<input type="submit" value="修改" class="btn btn-info">
					 		<input type="button" value="取消" class="btn btn-info" onclick="window.history.back();">
					  </div>
				</form>
			</div>
		</div>
		
	</div>
	<!-- 表单验证待完成 -->
	<script type="text/javascript">
		
	</script>
</body>
</html>